import { createStore } from "vuex";

import modules from "./modules";

const store = createStore({
  // state: {},
  // getters: {},
  // actions: {},
  // mutations: {}
  modules,
});

// 单个模块数据类型
export interface Counter {
  count: number;
}

export interface Home {}

// 所有状态数据的类型
export interface State {
  counter: Counter;
  home: Home;
}

export default store;
